package com.zik.service_activity.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zik
 * @description 分页插件
 * @time 2023/5/18 20:53
 **/
@Configuration
@MapperScan("com.zik.service_activity.mapper")
public class ActivityConfig {
    @Bean
    public PaginationInnerInterceptor paginationInnerInterceptor() {
        return new PaginationInnerInterceptor();
    }
}
